import request from '@/utils/request'

// 查询考试记录列表
export function listExamPaper(query) {
  return request({
    url: '/exam/examPaper/list',
    method: 'get',
    params: query
  })
}

// 查询考试记录详细
export function getExamPaper(id) {
  return request({
    url: '/exam/examPaper/' + id,
    method: 'get'
  })
}

// 新增考试记录
export function addExamPaper(data) {
  return request({
    url: '/exam/examPaper',
    method: 'post',
    data: data
  })
}

// 修改考试记录
export function updateExamPaper(data) {
  return request({
    url: '/exam/examPaper',
    method: 'put',
    data: data
  })
}

// 删除考试记录
export function delExamPaper(id) {
  return request({
    url: '/exam/examPaper/' + id,
    method: 'delete'
  })
}
